#ifndef SPACECOL3D_H
#define SPACECOL3D_H
#include "spacecol.h"
#include "treegen3d.h"

#define BPR3D 5

class TreeGen3D;
class Renderer;

class SpaceCol3D : public SpaceCol
{
public:
    SpaceCol3D(Renderer * render);
    ~SpaceCol3D();
    // automatically generate markers in a grid of size BPR*BPR, BPD defined in spaceCol2d.cpp
    //the number of markers are (canvaswidth/BPR)^2/8.0
    virtual void generateMarkers();
    //void createRoot(float3 start, float3 end);
    void initialize(float2 position);
    void updateTree(TreeGen3D *newTree);
    virtual void drawMarkers();
    virtual void addMarkers(double x, double y, double z);
    //void populateBud(Bud * b, int depth);
    //void assignMarkers(Bud* b);
    void clearTree();

    //Artistic * m_widget;
    //TreeGen2D * m_tree;
    Renderer * m_renderer;
};

#endif // SPACECOL3D_H
